package com.hubujun.driverlicense.network.api;

public abstract class BaseAPI
{
    public static final String KEY_ACCESS_TOKEN = "access_token";
    public static final String KEY_USER_ID = "_id";
    public static final String KEY_PAGE = "page";
    public static final String KEY_SIZE = "size";
    public static final String KEY_VERSION = "version";
    private static final int DEFAULT_PAGE_SIZE = 20;
    private String mAccessToken;

    public BaseAPI() {}

    public BaseAPI(String accessToken)
    {
        setAccessToken(accessToken);
    }

    public void setAccessToken(String accessToken)
    {
        this.mAccessToken = (accessToken == null ? "" : accessToken);
    }

    public String getAccessToken()
    {
        return this.mAccessToken;
    }

    public abstract String getApiUrl();
}
